<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>考试系统</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/chili-1.7.pack.js"></script>
<script type="text/javascript" src="js/jquery.easing.js"></script>
<script type="text/javascript" src="js/jquery.dimensions.js"></script>
<script type="text/javascript" src="js/jquery.accordion.js"></script>
<script language="javascript">
	jQuery().ready(function(){
		jQuery('#navigation').accordion({
			header: '.head',
			navigation1: true, 
			event: 'click',
			fillSpace: true,
			animated: 'bounceslide'
		});
	});
	
	function jisuanji(){
		window.open("http://it.ctgu.edu.cn/");
	}
	function library(){
		window.open("http://210.42.38.35/");
	}
	function baidu(){
		window.open("http://www.baidu.com/");
	}
	
</script>
<style type="text/css">
<!--
body {
	margin:0px;
	padding:0px;
	font-size: 12px;
}
#navigation {
	margin:0px;
	padding:0px;
	width:147px;
}
#navigation a.head {
	cursor:pointer;
	background:url(images/main_34.gif) no-repeat scroll;
	display:block;
	font-weight:bold;
	margin:0px;
	padding:5px 0 5px;
	text-align:center;
	font-size:12px;
	text-decoration:none;
}
#navigation ul {
	border-width:0px;
	margin:0px;
	padding:0px;
	text-indent:0px;
}
#navigation li {
	list-style:none; display:inline;
}
#navigation li li a {
	display:block;
	font-size:12px;
	text-decoration: none;
	text-align:center;
	padding:3px;
}
#navigation li li a:hover {
	background:url(images/tab_bg.gif) repeat-x;
		border:solid 1px #adb9c2;
}
-->
</style>
</head>
<body>
	<%
		String role = session.getAttribute("role").toString();
	%>
<div  style="height:100%;">
  <ul id="navigation">   
    <%if("0".equals(role)){ %>
    <li> <a class="head">菜单</a>
      <ul>
<%--        <li><a href="#" target="rightFrame">添加选择题</a></li>
        <li><a href="#" target="rightFrame">添加填空题</a></li>--%>
        <li><a href="<%=path %>/Paper/PaperAction!showPaperScore.action" target="rightFrame">查看分数</a></li>
        <li><a href="<%=path %>/Exam/ExamAction!showRank.action" target="rightFrame">查看排位</a></li>
       <%--<li><a href="<%=path %>/Exam/ExamAction!showDifficulty.action" target="rightFrame">难度统计</a></li> --%> 
      </ul>
    </li>
    <%}else if("1".equals(role)){ %>
    <li> <a class="head">添加试题</a>
      <ul>
<%--        <li><a href="#" target="rightFrame">添加选择题</a></li>--%>
<%--        <li><a href="#" target="rightFrame">添加填空题</a></li>--%>
<li><a href="jsp/teacher/addprogram_blank.jsp" target="rightFrame">添加程序填空题</a></li>
        <li><a href="jsp/teacher/addprogram.jsp" target="rightFrame">添加编程题</a></li>
      </ul>
    </li>
    <li> <a class="head">试题查看</a>
      <ul>

<li><a href="<%=path %>/Teacher/TeacherAction!ProgramBlankList.action?add=0" target="rightFrame">程序填空题管理</a></li>
		<li><a href="<%=path %>/Teacher/TeacherAction!ProgramList.action?add=0" target="rightFrame">编程题管理</a></li>
      </ul>
    </li>
     <li> <a class="head">考试管理</a>
      <ul>
         <li><a href="<%=path %>/Teacher/TeacherAction!PaperList.action" target="rightFrame">全部考试</a></li>
         <li><a href="<%=path %>/Teacher/TeacherAction!MyPaperList.action" target="rightFrame">我的考试</a></li>
         <li><a href="<%=path %>/Teacher/TeacherAction!addPaper.action" target="rightFrame">新增考试</a></li>


         <li><a href="<%=path %>/Teacher/TeacherAction!StuScore.action" target="rightFrame">查看分数</a></li>
         <li><a href="<%=path %>/Exam/ExamAction!showRank.action" target="rightFrame">查看排位</a></li>
         <li><a href="<%=path %>/Exam/ExamAction!showDifficulty.action" target="rightFrame">难度统计</a></li>
      </ul>
    </li>
    <li> <a class="head">班级管理</a>
      <ul>
         <li><a href="<%=path %>/Clazz/ClazzAction!ClazzList.action" target="rightFrame">所有班级</a></li>
         <li><a href="jsp/clazz/addClazz.jsp" target="rightFrame">添加班级</a></li>
         <li><a href="jsp/clazz/importStu.jsp" target="rightFrame">导入学生信息</a></li>
         <li><a href="<%=path %>/FileDownLoad/download.action" target="rightFrame">下载模板</a></li>
      </ul>
    </li>
    
    <%}else if("2".equals(role)){ %>
    <li> <a class="head">人员管理</a>
      <ul>
        <li><a href="<%=path %>/Admin/AdminAction!stuList.action" target="rightFrame">学生管理</a></li>
        <li><a href="<%=path %>/Admin/AdminAction!stuList.action?flag=teacher" target="rightFrame">教师管理</a></li>
      </ul>
    </li>
    

    
    <%} %>
    
    <li> <a class="head">友情链接管理</a>
      <ul>
        <li><a href= "#" onclick="jisuanji()" >三峡大学计算机学院</a></li>
        <li><a href="#" onclick="library()" >三峡大学图书馆</a></li>
		<li><a href="#" onclick="baidu()" >百度一下</a></li>
      </ul>
    </li>
    <li> <a class="head">版本信息</a>
      <ul>
        <li><a href="introduction.jsp" target="rightFrame">简介</a></li>
      </ul>
    </li>
  </ul>
</div>
</body>
</html>
